package com.neusoft.zqygbc.neusoft_wenda.model;

import com.neusoft.zqygbc.neusoft_wenda.base.RetrofitCallBuilder;
import com.neusoft.zqygbc.neusoft_wenda.base.RetrofitCallback;

import retrofit2.Call;


/**
 * Created by Lenovo on 2017/4/19.
 */

public abstract class RetrofitBaseModel {
    protected RetrofitCallBuilder retrofitCallBuilder;
    public RetrofitBaseModel(){
        retrofitCallBuilder =
                RetrofitCallBuilder.getInstance()
                        .baseUrl(Server.BASE_URL);
    }
    public <T> void bindCallback(Call<T> call, RetrofitCallback<T> callback) {
        retrofitCallBuilder.bindCallback(call, callback);
    }
}
